<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class TOrderItem extends Model
{
    protected $table = 't_order_item';

    public function goods()
    {
        $this->belongsTo('App\Models\TGoods','GOODS_ID');
    }

    public function order()
    {
        $this->hasOne('App\Models\TOrder','ORDER_ID');
    }
}
